package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
import java.util.List;

public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    Schedule getSchedulesByHoscodeAndDepcodeAndHosScheduleId(String hocode,String depcode,String hosScheduleId);

    void deleteScheduleByHoscodeAndHosScheduleId(String hoscode,String scheduleId);

    Long countAllByHoscodeAndDepcode(String hoscode,String depcode);

    List<Schedule> getSchedulesByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);
}
